﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Spenta.StreetCare.Core.Models.Report>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Details
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Details</h2>

    <fieldset>
        <legend>Fields</legend>
                        
        <div class="display-label">Title</div>
        <div class="display-field"><%: Model.ReportTitle %></div>
        
        <div class="display-label">Date</div>
        <div class="display-field"><%: String.Format("{0:dd/MM/yyyy}", Model.ReportWhen) %></div>
        
        <div class="display-label">Citizen</div>
        <div class="display-field"><%: Model.User.UserNickname %></div>
        
        <div class="display-label">Status</div>
        <div class="display-field"><%: Model.Status.StatusTitle %></div>
        
        <div class="display-label">Status date</div>
        <div class="display-field"><%: String.Format("{0:dd/MM/yyyy}", Model.ReportStatusWhen) %></div>
        
        <div class="display-label">Category</div>
        <div class="display-field"><%: Model.Category.CategoryTitle %></div>
        
        <div class="display-label">Latitude</div>
        <div class="display-field"><%: String.Format("{0:F}", Model.ReportLatitude) %></div>
        
        <div class="display-label">Longitude</div>
        <div class="display-field"><%: String.Format("{0:F}", Model.ReportLongitude) %></div>
        
        <div class="display-label">Location</div>
        <div class="display-field"><%: Model.ReportLocation %></div>
        
        <div class="display-label">Image</div>
        <div class="display-field"><img width="100" src="/ClientBin<%: Model.ReportImageUrl %>" /></div>
        
        <div class="display-label">Notification type</div>
        <div class="display-field"><%: Model.ReportNotificationTypeID %></div>
        
        <div class="display-label">Notification details</div>
        <div class="display-field"><%: Model.ReportNotificationDetails %></div>
        
        <div class="display-label">Fixed image</div>
        <div class="display-field"><%: Model.ReportFixedImageUrl %></div>
        
    </fieldset>
    <p>

        <%: Html.ActionLink("Edit", "Edit", new { id=Model.ReportID }) %> |
        <%: Html.ActionLink("Back to List", "Index") %>
    </p>

</asp:Content>

